package com.wali.modules.common.dao;

import com.wali.modules.common.vo.ComGoodsVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author walixu
 * @ClassName com.wali.modules.common.dao
 * @Description 备案商品信息dao接口
 * @email wali.xu@kpmg.com
 * @date 09/03/2019 2:14 下午
 */
@Mapper
public interface IComGoodsDao {

    /**
     * @param comGoodsList
     * @return
     * @throws
     * @Title batchSaveComGoods
     * @Description 批量新增商品信息
     */
    int batchSaveComGoods(@Param("comGoodsList") List<ComGoodsVO> comGoodsList);

    /**
     * @param comGoodsList
     * @return
     * @throws
     * @Title batchUpdateComGoods
     * @Description 批量更新商品信息
     */
    int batchUpdateComGoods(@Param("comGoodsList") List<ComGoodsVO> comGoodsList);

    /**
     * @param comGoodsList
     * @return
     * @throws
     * @Title batchDeleteComGoods
     * @Description 批量删除商品信息
     */
    int batchDeleteComGoods(@Param("comGoodsList") List<ComGoodsVO> comGoodsList);

    /**
     * @return
     * @throws
     * @Title listAllComGoods
     * @Description 查询所有的商品信息
     */
    List<ComGoodsVO> listAllComGoods();

    /**
     * @param comGoodsList
     * @return
     * @throws
     * @Title listComGoods
     * @Description 查询符合条件的商品信息
     */
    List<ComGoodsVO> listComGoods(@Param("comGoodsList") List<ComGoodsVO> comGoodsList);
}
